/*class Schloo {
    public int date1 = 1;
    private int Date2 = 2;
    public static int date3 = 3;

    static class Student {
        public int date4 = 4;
        private int Date5 = 5;
        private static int date6 = 6;

        public void func1() {
            Schloo schloo = new Schloo();
            System.out.println(schloo.date1);
            System.out.println("no");
        }
    }

    public void func() {
        Student student = new Student();
        student.func1();
    }
}*/


import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import javax.swing.plaf.SpinnerUI;

/*
class Schloo {
    public int date1 = 1;
    private int Date2 = 2;
    public static int date3 = 3;

    class Student {
        public int date1 = 55;
        public int date4 = 4;
        private int Date5 = 5;
        private static final int date6 = 6;

        public void func1() {
            Schloo schloo = new Schloo();
            System.out.println(schloo.date1);
            System.out.println(Schloo.this.date1);
            System.out.println(date1);
            System.out.println(this.date1);
            System.out.println("no");
        }
    }

    public void func() {
        Student student = new Student();
        student.func1();
    }
}
*/
/*interface A{

    void func();

}

class TestA implements A{

    @Override
    public void  func() {

    }

}
*/

class TestA {
    public void test() {
        class A {
            public int a1 = 1;
            private int a2 = 2;


            public void func() {
                System.out.println(a1);
            }


        }
        A a = new A();
        a.func();
    }
}

public class Test {
    public static void main(String[] args) {
        TestA testA = new TestA();
        testA.test();

    }
   /* public static void main(String[] args) {
      //TestA testA = new TestA();
        //testA.func();
        //new TestA().func();// 匿名对象
        //匿名内部类
        A a = new A() {
            @Override
            public void func() {
                System.out.println("ok");
            }
        };
       a.func();
        new A() {
            @Override
            public void func() {
                System.out.println("ok");
            }
        }.func();

       Test test= new Test() {
            void func2() {
                System.out.println("ok");
            }
        };


    }*/
  /*  public static void main(String[] args) {
        Schloo schloo = new Schloo();
        Schloo.Student student1 = schloo.new Student();
        Schloo.Student student2 = new Schloo().new Student();
        student1.func1();
    }
*/
    public static void main1(String[] args) {
      /*  Schloo.Student student = new Schloo.Student();
        student.func1();*/
    }
}
















